import React from 'react';

const App = () => {
  let count = 0
  function doClick (){
    count = count + 1
    console.log(count)
  }
  return (
    <div>
      <button onClick={doClick}>当前点击了{count}次</button>
    </div>
  );
}

export default App;
